var grid;
$(function(){
	$("#startDate").ligerDateEditor();
	$("#endDate").ligerDateEditor();
	grid = $("#maingrid").ligerGrid({
		url:HTR.U('index/logoperates/pageQuery'),
		pageSize:HTR.pageSize,
		pageSizeOptions:HTR.pageSizeOptions,
		height:'99%',
        width:'100%',
        minColToggle:6,
        rownumbers:true,
        columns: [
	        { display: '职员编号', name: 'staffNo',width:80},
	        { display: '职员姓名', name: 'staffName'},
	        { display: '职员角色', name: 'roleName'},
	        { display: '手机号码', name: 'staffPhone'},
	        { display: '操作功能', name: 'operateDesc',isSort: false,render: function (rowdata, rowindex, value){
	        	return rowdata['menuName']+"-"+rowdata['operateDesc'];
	        }},
	        { display: '操作时间', name: 'operateTime',isSort: false},
	        { display: '操作IP', name: 'operateIP',isSort: false},
        ]
    });
})
function loadGrid(){
	grid.set('url',HTR.U('index/logoperates/pageQuery','startDate='+$('#startDate').val()+"&endDate="+$('#endDate').val()))
}